package hotgammon.alphamon;

import java.util.Map;

import hotgammon.common.Color;
import hotgammon.common.Location;
import hotgammon.common.SetupPiecesStrategy;

public class NormalSetupPiecesStrategy implements SetupPiecesStrategy {

	@Override
	public void setupPieces(Map<Location, Color> locationColors, Map<Location, Integer> locationCount) {
		locationColors.put(Location.R1, Color.BLACK);
        locationCount.put(Location.R1, 2);
        locationColors.put(Location.R2, Color.NONE);
        locationCount.put(Location.R2, 0);
        locationColors.put(Location.R3, Color.NONE);
        locationCount.put(Location.R3, 0);
        locationColors.put(Location.R4, Color.NONE);
        locationCount.put(Location.R4, 0);
        locationColors.put(Location.R5, Color.NONE);
        locationCount.put(Location.R5, 0);
        locationColors.put(Location.R6, Color.RED);
        locationCount.put(Location.R6, 5);
        locationColors.put(Location.R7, Color.NONE);
        locationCount.put(Location.R7, 0);
        locationColors.put(Location.R8, Color.RED);
        locationCount.put(Location.R8, 3);
        locationColors.put(Location.R9, Color.NONE);
        locationCount.put(Location.R9, 0);
        locationColors.put(Location.R10, Color.NONE);
        locationCount.put(Location.R10, 0);
        locationColors.put(Location.R11, Color.NONE);
        locationCount.put(Location.R11, 0);
        locationColors.put(Location.R12, Color.BLACK);
        locationCount.put(Location.R12, 5);
        locationColors.put(Location.B12, Color.RED);
        locationCount.put(Location.B12, 5);
        locationColors.put(Location.B11, Color.NONE);
        locationCount.put(Location.B11, 0);
        locationColors.put(Location.B10, Color.NONE);
        locationCount.put(Location.B10, 0);
        locationColors.put(Location.B9, Color.NONE);
        locationCount.put(Location.B9, 0);
        locationColors.put(Location.B8, Color.BLACK);
        locationCount.put(Location.B8, 3);
        locationColors.put(Location.B7, Color.NONE);
        locationCount.put(Location.B7, 0);
        locationColors.put(Location.B6, Color.BLACK);
        locationCount.put(Location.B6, 5);
        locationColors.put(Location.B5, Color.NONE);
        locationCount.put(Location.B5, 0);
        locationColors.put(Location.B4, Color.NONE);
        locationCount.put(Location.B4, 0);
        locationColors.put(Location.B3, Color.NONE);
        locationCount.put(Location.B3, 0);
        locationColors.put(Location.B2, Color.NONE);
        locationCount.put(Location.B2, 0);
        locationColors.put(Location.B1, Color.RED);
        locationCount.put(Location.B1, 2);
        
        locationColors.put(Location.B_BAR, Color.BLACK); //Only black checkers allowed so initialize to color
        locationCount.put(Location.B_BAR, 0);
        locationColors.put(Location.R_BAR, Color.RED); //Only red checkers allowed so initialize to color
        locationCount.put(Location.R_BAR, 0);
        locationColors.put(Location.B_BEAR_OFF, Color.BLACK); //Only black checkers allowed so initialize to color
        locationCount.put(Location.B_BEAR_OFF, 0);
        locationColors.put(Location.R_BEAR_OFF, Color.RED); //Only red checkers allowed so initialize to color
        locationCount.put(Location.R_BEAR_OFF, 0); 
		
	}
	

}

